package org.dromara.authcode.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 设备激活记录对象 device_auth
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device_auth")
public class DeviceAuth extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 激活记录ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 设备ID
     */
    private Long deviceId;

    /**
     * 授权码
     */
    private String authCode;

    /**
     * 使用的授权码ID
     */
    private Long authCodeId;

    /**
     * 授权时间
     */
    private Date authTime;

    /**
     * 到期时间
     */
    private Date expireTime;


}
